#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	for (int i = 0; i < n+1; i++)
	{
		int m = n;
		for (int j = m; j > i; j--)
		{
			printf(" ");
		}
		for (int j = 0; j <= i; j++)
		{
			printf("* ");
		}
		printf("\n");
	}
	for (int i = 0; i < n; i++)
	{
		int m = n;	
		for (int j = 0; j <= i; j++)
		{
			printf(" ");
		}
		for (int j = m; j > i; j--)
		{
			printf("* ");
		}

		printf("\n");
	}
	return 0;
}